import java.util.Scanner;

public class App {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String kong = "\n";
        System.out.println("请输入一个整数：");
        int num = sc.nextInt();
        kong = sc.nextLine();//抵消'\n'，使下一次的字符串输入能够正常进行
        System.out.println(num);

        System.out.println("请输入一个字符：");
        String str = sc.nextLine();
        System.out.println(str);
        char u = str.charAt(0);
        System.out.println(u);

        System.out.println("请输入一个小数：");
        float pi = sc.nextFloat();
        kong = sc.nextLine();
        System.out.println(pi);
    }
}

